﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="management.aspx.cs" Inherits="hospital_registration_system.manager.management" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>网络挂号管理</title>
         <link href="../Content/bootstrap.min.css" rel="stylesheet" />
     <link href="../css/base.css" rel="stylesheet" />
      <link href="../css/management.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
  <!-- header区域 -->
    <div class="header">
      <div class="text">
            网络挂号系统管理
          <a href="managerLogin.aspx">
              <div class="dropOut">
                  <i class="glyphicon glyphicon-log-out"></i><span>退出</span>
              </div>

          </a>
      </div>
        
    </div>
 <!-- header区域结束-->

  <!-- 导航区域 -->
    <div class="nav">
         <div class="nav_list">
         <ul>
       <li class=" current" > <i class="glyphicon glyphicon-inbox"></i><span>科室管理</span></li>
          <li><i class="glyphicon glyphicon-user "></i><span>医生管理</span></li>
          <li><i class="glyphicon glyphicon-warning-sign "></i><span>疾病管理</span></li>
          <li ><i class="glyphicon glyphicon-bell"></i><span>就诊时段设置</span></li>
        <li ><i class="glyphicon glyphicon-stats"></i><span>统计分析</span></li>
         </ul>
        </div>

    </div>
  <!-- 导航区域结束 -->  
  <!-- 内容区域 -->
    <div class="content">
        <div class="item" style="display:block">
            <div class="top">科室管理</div>
          <div class="bottom">
               <div class="insert">
                    请输入添加的科室名:<asp:TextBox ID="tbAdd" runat="server" CssClass="textbox"></asp:TextBox>
            <asp:Button ID="btnSubmit" runat="server" Text="添加" OnClick="btnSubmit_Click" CssClass="button"/> (插入成功后，在表中修改信息即可完成插入)
               </div>
            <div class="table">
                <asp:GridView ID="gdvDepartments" runat="server" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" AllowPaging="True" DataKeyNames="id" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="gridview">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="科室id">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("id") %>' Height="100%" ReadOnly="True" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="科室名">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("department_name") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("department_name") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="楼层">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("floor") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("floor") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="房间号">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("house_number") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Bind("house_number") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="创建人">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("CREATED_BY1") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label5" runat="server" Text='<%# Bind("CREATED_BY1") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="创建日期">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("CREATED_TIME1") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label6" runat="server" Text='<%# Bind("CREATED_TIME1") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="更新人">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("UPDATED_BY1") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label7" runat="server" Text='<%# Bind("UPDATED_BY1") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="更新日期">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("UPDATED_TIME1") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label8" runat="server" Text='<%# Bind("UPDATED_TIME1") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="状态">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("state") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label9" runat="server" Text='<%# Bind("state") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:CommandField ShowDeleteButton="True" />
                    <asp:CommandField ShowEditButton="True" />
                    <asp:CommandField ShowSelectButton="True" />
                </Columns>
                 <EditRowStyle BackColor="#E0E1DB" Font-Overline="False" Font-Size="14px" />
                <FooterStyle BackColor="#53a694" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#53a694" Font-Bold="True" ForeColor="White" Height="38px" VerticalAlign="Middle" />
                <PagerStyle BackColor="#53a694" ForeColor="White" HorizontalAlign="Center" Height="30px" />
                <RowStyle BackColor="#f0faf8" Height="36px" />
                <SelectedRowStyle BackColor="#f3eae0" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F8FAFA" />
                <SortedAscendingHeaderStyle BackColor="#246B61" />
                <SortedDescendingCellStyle BackColor="#D4DFE1" />
                <SortedDescendingHeaderStyle BackColor="#15524A" />

            </asp:GridView>
            </div>
          </div>


            


        </div>
         <div class="item">
            <div class="top">医生管理</div>
           <div class="bottom">
         <div class="insert">
                    请输入添加的医生名:<asp:TextBox ID="txtAddDoctor" runat="server" CssClass="textbox"></asp:TextBox>
            <asp:Button ID="btnDoctorSubmit" runat="server" Text="添加" OnClick="btnDoctorSubmit_Click" CssClass="button" /> (插入成功后，在表中修改信息即可完成插入)
         </div>
           <div class="table"> 
               <asp:GridView ID="gdvDoctor" runat="server" OnPageIndexChanging="gdvDoctor_PageIndexChanging" OnRowCancelingEdit="gdvDoctor_RowCancelingEdit" OnRowDataBound="gdvDoctor_RowDataBound" OnRowDeleting="gdvDoctor_RowDeleting" OnRowEditing="gdvDoctor_RowEditing" OnRowUpdating="gdvDoctor_RowUpdating" AllowPaging="True" DataKeyNames="id" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="gridview">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="医生id">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtDoctorId" runat="server" Text='<%# Bind("id") %>' Height="100%" ReadOnly="True" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="姓名">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtDoctorName" runat="server" Text='<%# Bind("doctor_name") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("doctor_name") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="昵称">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtDoctorNickName" runat="server" Text='<%# Bind("nickname") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("nickname") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="性别">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtDoctorSex" runat="server" Text='<%# Bind("sex") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Bind("sex") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="年龄">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtDoctorAge" runat="server" Text='<%# Bind("age") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label5" runat="server" Text='<%# Bind("age") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="邮箱">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtDoctorEmail" runat="server" Text='<%# Bind("email") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label6" runat="server" Text='<%# Bind("email") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="手机">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtDoctorTelephone" runat="server" Text='<%# Bind("telephone") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label7" runat="server" Text='<%# Bind("telephone") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="地址">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtDoctorAddress" runat="server" Text='<%# Bind("address") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label8" runat="server" Text='<%# Bind("address") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="密码">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtDoctorPassword" runat="server" Text='<%# Bind("doctor_password") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label9" runat="server" Text='<%# Bind("doctor_password") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="科室id">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtDoctorDepartment_id" runat="server" Text='<%# Bind("department_id") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label10" runat="server" Text='<%# Bind("department_id") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="创建人">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtDoctorCreater" runat="server" Text='<%# Bind("CREATED_BY1") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label11" runat="server" Text='<%# Bind("CREATED_BY1") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="创建日期">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtDoctorCreateTime" runat="server" Text='<%# Bind("CREATED_TIME1") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label12" runat="server" Text='<%# Bind("CREATED_TIME1") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="更新人">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtDoctorUpdater" runat="server" Text='<%# Bind("UPDATED_BY1") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label13" runat="server" Text='<%# Bind("UPDATED_BY1") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="更新日期">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtDoctorUpdateTime" runat="server" Text='<%# Bind("UPDATED_TIME1") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label14" runat="server" Text='<%# Bind("UPDATED_TIME1") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="状态">
                        <EditItemTemplate>
                            <asp:TextBox ID="txtDoctorState" runat="server" Text='<%# Bind("state") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label15" runat="server" Text='<%# Bind("state") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:CommandField ShowDeleteButton="True" />
                    <asp:CommandField ShowEditButton="True" />
                    <asp:CommandField ShowSelectButton="True" />
                </Columns>
                <EditRowStyle BackColor="#E0E1DB" Font-Overline="False" Font-Size="14px" />
                <FooterStyle BackColor="#53a694" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#53a694" Font-Bold="True" ForeColor="White" Height="38px" VerticalAlign="Middle" />
                <PagerStyle BackColor="#53a694" ForeColor="White" HorizontalAlign="Center" Height="30px" />
                <RowStyle BackColor="#f0faf8" Height="36px" />
                <SelectedRowStyle BackColor="#f3eae0" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F8FAFA" />
                <SortedAscendingHeaderStyle BackColor="#246B61" />
                <SortedDescendingCellStyle BackColor="#D4DFE1" />
                <SortedDescendingHeaderStyle BackColor="#15524A" />

            </asp:GridView></div>
           </div>
        </div>
         <div class="item">
            <div class="top">疾病管理</div>
             <div class="bottom">  
               <div class="insert">
                     请输入添加的疾病名:<asp:TextBox ID="txtIllAdd" runat="server"  CssClass="textbox"></asp:TextBox>
            <asp:Button ID="btnAddIll" runat="server" Text="添加" OnClick="btnAddIll_Click" CssClass="button"/> (插入成功后，在表中修改信息即可完成插入)
               </div>
            <asp:GridView ID="gdvIllness" runat="server" OnPageIndexChanging="gdvIllness_PageIndexChanging" OnRowCancelingEdit="gdvIllness_RowCancelingEdit" OnRowDataBound="gdvIllness_RowDataBound" OnRowDeleting="gdvIllness_RowDeleting" OnRowEditing="gdvIllness_RowEditing" OnRowUpdating="gdvIllness_RowUpdating" AllowPaging="True" DataKeyNames="id" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="gridview">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="疾病id">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("id") %>' Height="100%" ReadOnly="True" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="疾病名称">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("illness_name") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("illness_name") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
      
       
                    <asp:TemplateField HeaderText="创建人">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("CREATED_BY1") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label5" runat="server" Text='<%# Bind("CREATED_BY1") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="创建日期">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("CREATED_TIME1") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label6" runat="server" Text='<%# Bind("CREATED_TIME1") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="更新人">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("UPDATED_BY1") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label7" runat="server" Text='<%# Bind("UPDATED_BY1") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="更新日期">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("UPDATED_TIME1") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label8" runat="server" Text='<%# Bind("UPDATED_TIME1") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="状态">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("state") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label9" runat="server" Text='<%# Bind("state") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:CommandField ShowDeleteButton="True" />
                    <asp:CommandField ShowEditButton="True" />
                    <asp:CommandField ShowSelectButton="True" />
                </Columns>
                <EditRowStyle BackColor="#E0E1DB" Font-Overline="False" Font-Size="14px" />
                <FooterStyle BackColor="#53a694" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#53a694" Font-Bold="True" ForeColor="White" Height="38px" VerticalAlign="Middle" />
                <PagerStyle BackColor="#53a694" ForeColor="White" HorizontalAlign="Center" Height="30px" />
                <RowStyle BackColor="#f0faf8" Height="36px" />
                <SelectedRowStyle BackColor="#f3eae0" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F8FAFA" />
                <SortedAscendingHeaderStyle BackColor="#246B61" />
                <SortedDescendingCellStyle BackColor="#D4DFE1" />
                <SortedDescendingHeaderStyle BackColor="#15524A" />
            </asp:GridView>
                <div class="insert">
                     输入疾病id和科室id以设置疾病和科室之间的关系:
                 <asp:TextBox ID="tbxIllId" runat="server"  CssClass="textbox"></asp:TextBox>
                 <asp:TextBox ID="tbxDepId" runat="server"  CssClass="textbox"></asp:TextBox>
                 <asp:Button ID="btnAddIllAndDep" runat="server" Text="添加" OnClick="btnAddIllAndDep_Click" CssClass="button" />
             
                </div>
                 <div class="insert">
                         输入疾病id以查找相关科室:<asp:TextBox ID="txtSearchIllDep" runat="server"  CssClass="textbox"></asp:TextBox>
                 <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" CssClass="button"/>
                 </div>
                 <asp:GridView ID="gdvillAndDep" runat="server" OnPageIndexChanging="gdvillAndDep_PageIndexChanging" OnRowCancelingEdit="gdvillAndDep_RowCancelingEdit" OnRowDataBound="gdvillAndDep_RowDataBound" OnRowDeleting="gdvillAndDep_RowDeleting" OnRowEditing="gdvillAndDep_RowEditing" OnRowUpdating="gdvillAndDep_RowUpdating" AllowPaging="True" DataKeyNames="id" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="gridview">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="记录id">
                        <EditItemTemplate>
                            <asp:TextBox ID="tbxid" runat="server" Text='<%# Bind("id") %>' Height="100%" ReadOnly="True" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="科室id">
                        <EditItemTemplate>
                            <asp:TextBox ID="tbxIllDep" runat="server" Text='<%# Bind("department_id") %>' Height="100%" ReadOnly="True" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("department_id") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="科室名">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("department_name") %>' Height="100%" Width="100%"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("department_name") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:CommandField ShowDeleteButton="True" />
                </Columns>
                <EditRowStyle BackColor="#E0E1DB" Font-Overline="False" Font-Size="14px" />
                <FooterStyle BackColor="#53a694" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#53a694" Font-Bold="True" ForeColor="White" Height="38px" VerticalAlign="Middle" />
                <PagerStyle BackColor="#53a694" ForeColor="White" HorizontalAlign="Center" Height="30px" />
                <RowStyle BackColor="#f0faf8" Height="36px" />
                <SelectedRowStyle BackColor="#f3eae0" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F8FAFA" />
                <SortedAscendingHeaderStyle BackColor="#246B61" />
                <SortedDescendingCellStyle BackColor="#D4DFE1" />
                <SortedDescendingHeaderStyle BackColor="#15524A" />
            </asp:GridView>
             </div>
        </div>
         <div class="item" style="display:none">
            <div class="top">就诊时段设置</div>
             <div class="bottom"></div>
        </div>
         <div class="item" style="display:none">
           <div class="top">统计分析</div>
             <div class="bottom"></div>
        </div>
   
    </div>
  <!-- 内容区域 -->
<script src="../js/management.js" type="text/javascript"></script>
    </form>
</body>
</html>
